package Api;

import com.sun.javaws.IconUtil;

import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Collection;

public class CollectionTests {
    public static void main(String[] args) {
        Collection <Integer>c0 =new ArrayList<>();
        c0.add(100);
        c0.add(200);
        System.out.println(c0);
        Collection<String>c1 = new ArrayList<>();
        c1.add("路飞");
        c1.add("索隆");
        System.out.println(c1);
        Collection c2 = new ArrayList();
        c2.add(123);
        c2.add("山治");
        System.out.println(c2);

        System.out.println(c0.size()+"/"+c1.size()+"/"+c2.size());
        System.out.println(c0.toArray()[0]+"/"+c1.toArray()[0]+"/"+c2.toArray()[0]);
    }
}
